package com.ruofeng.app.privilege.resource.menu

import com.ruofeng.app.common.ToolkitBean
import org.junit.Test
import org.junit.runner.RunWith
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.test.context.SpringBootTest
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner

/**
 * Created by 邱鹏 on 2017/8/9.
 */
@RunWith(SpringJUnit4ClassRunner::class)
@SpringBootTest
class MenuTest {
    @Autowired lateinit var toolkit: ToolkitBean
    @Test
    fun saveMenu() {
        toolkit.mongoTemplate.save(Menu())//2017-08-09 15:46 测试插入mongodb文档的效果
    }
}
